package widok;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ProstyString extends Widok {

	private String tekst;
	
	public ProstyString(String string) {
		tekst=string;
	}

	@Override
	public void pokaz(HttpServletRequest request, HttpServletResponse response, ServletContext context) throws IOException {
		PrintWriter out=response.getWriter();
		out.write(tekst);
		out.close();
	}

}
